//
// Created by wze-zero on 2024/9/8 008.
//
#include <iostream>
#include <iomanip>

using namespace std;

int main() {
    double num1, num2;
    char c;
    string s, s1, s2;
    cin >> s;
    for (int i = 0; i < s.size(); ++i) {
        if (s.at(i) == '+' || s.at(i) == '-' || s.at(i) == '*' || s.at(i) == '/') {
            c = s.at(i);
        } else if (c == '+' || c == '-' || c == '*' || c == '/') {
            s2 += s.at(i);
        } else {
            s1 += s.at(i);
        }
    }
    if (c == '+' || c == '-' || c == '*' || c == '/'){
        num1 = stod(s1);
        num2 = stod(s2);
        switch (c) {
            case '+':
                cout << fixed << setprecision(4) << num1 << c << num2 << '=' << num1 + num2 << endl;
                break;
            case '-':
                cout << fixed << setprecision(4) << num1 << c << num2 << '=' << num1 - num2 << endl;
                break;
            case '*':
                cout << fixed << setprecision(4) << num1 << c << num2 << '=' << num1 * num2 << endl;
                break;
            case '/':
                if (num2 == 0) {
                    cout << "Wrong!Division by zero!" << endl;
                } else {
                    cout << fixed << setprecision(4) << num1 << c << num2 << '=' << num1 / num2 << endl;
                }
                break;
            default:
                cout << "Invalid operation!" << endl;
                break;
        }
    } else{
        cout << "Invalid operation!" << endl;
    }
    return 0;
}